Skip to content

Fix CI NU1903: override vulnerable transitive SSH.NET with 2026.0.0 - #20

Merged
lgamorim merged 1 commit into
masterfrom
feature/fix-nu1903-sshnet
Aug 13, 2026
Merged

Fix CI NU1903: override vulnerable transitive SSH.NET with 2026.0.0#20
lgamorim merged 1 commit into
masterfrom
feature/fix-nu1903-sshnet

Conversation

@lgamorim

Copy link
Copy Markdown
Owner

Why

CI dotnet restore started failing on 2026-08-13 with NU1903 (warnings-as-errors): the transitive package SSH.NET 2025.1.0 has a known high-severity vulnerability (GHSA-q939-rpr3-3284, path traversal in ScpClient recursive download; patched in SSH.NET 2026.0.0). It is pulled in by Testcontainers 4.13.0, referenced by the four integration-test projects.

What

Testcontainers 4.13.0 is still the latest release, so no upstream bump is available. Instead, each affected test project gets a direct PackageReference to SSH.NET 2026.0.0, lifting the resolved version above the vulnerable one:

  • test/SqlBound.SqlServer.IntegrationTests
  • test/SqlBound.Npgsql.IntegrationTests
  • test/SqlBound.MySql.IntegrationTests
  • test/SqlBound.Cli.IntegrationTests

Each reference carries a comment noting it overrides the vulnerable transitive version and can be removed once Testcontainers depends on SSH.NET >= 2026.0.0.

Verification

  • dotnet restore — clean, no NU1903
  • dotnet build --no-restore -warnaserror — 0 warnings, 0 errors
  • SSH.NET resolves to 2026.0.0 (dotnet list package --include-transitive)
  • Unit tests: 367 passed, 0 failed (integration tests excluded — they require Docker and are unaffected by a package-version-only change)

🤖 Generated with Claude Code

…ests

CI restore fails with NU1903 (warnings-as-errors) because Testcontainers
4.13.0 transitively pulls SSH.NET 2025.1.0, which has a known
high-severity vulnerability (GHSA-q939-rpr3-3284, path traversal in
ScpClient recursive download, patched in 2026.0.0). No Testcontainers
release depends on the patched version yet (4.13.0 is latest), so add a
direct SSH.NET 2026.0.0 reference to the four affected integration-test
projects to lift the resolved version. Remove once Testcontainers
depends on SSH.NET >= 2026.0.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lgamorim
lgamorim merged commit 7284320 into master Aug 13, 2026
4 checks passed
@lgamorim
lgamorim deleted the feature/fix-nu1903-sshnet branch August 13, 2026 14:36
@lgamorim lgamorim added this to the Phase 6 — Ship (1.0.x) milestone Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant